﻿using System;
using System.Collections.Generic;

#nullable disable

namespace Ant.EntityFrameworkCore.Model
{
    public partial class CommodityInfo
    {
        public CommodityInfo()
        {
            CommodityOrders = new HashSet<CommodityOrder>();
            Inventories = new HashSet<Inventory>();
            ProviderOrders = new HashSet<ProviderOrder>();
        }

        public int Cid { get; set; }
        public string Cname { get; set; }
        public decimal Price { get; set; }
        public int StoreId { get; set; }
        public string BarCode { get; set; }
        public string Specification { get; set; }
        public string Unit { get; set; }
        public int? Ctype { get; set; }

        public virtual StoreInfo Store { get; set; }
        public virtual ICollection<CommodityOrder> CommodityOrders { get; set; }
        public virtual ICollection<Inventory> Inventories { get; set; }
        public virtual ICollection<ProviderOrder> ProviderOrders { get; set; }
    }
}
